/**
 * 
 */
package pt.inescid.components.console.commands;

import pt.inescid.components.console.Console;

/**
 * @author Sergio Esteves (sesteves at gsd.inesc-id.pt)
 *
 */
public class ShowMinRatioCommand extends Command {

	public static final String CMD_NAME = "show_min_ratio";

	public ShowMinRatioCommand(Console console) {
		super(console);
	}
	
	@Override
	public void execute(String[] args) throws CommandException {
		console.writeln("The minimum ratio a remote node needs to have to perform work here: " + 
				gridP2P.getMinRatio());
	}

	@Override
	public String getCmdName() {
		return CMD_NAME;
	}

	public String synopsis() {	
		return CMD_NAME + SYNTAX_SEPARATOR + "Shows the minimum ratio to perform work";
	}
}
